import { getAllEventhttp } from '../../../../../src/request/eventHttp.js'
export const road = () => {
  const outerVisible = ref(false)
  const tableData = ref()
  const inputvalue = ref()
  async function handleRoad() {
    outerVisible.value = true
    const res = await getAllEventhttp()
    tableData.value = res.data.result
  }
  async function handleSearch() {
    const res = await getAllEventhttp(inputvalue.value)
    tableData.value = res.data.result
  }
  return {
    handleRoad,
    handleSearch,
    tableData,
    outerVisible,
    inputvalue,
  }
}
